//
//  Persion.m
//  构造和析构
//
//  Created by clz on 2019/7/7.
//  Copyright © 2019年 clz. All rights reserved.
//

#import "Persion.h"

@implementation Persion

- (instancetype)init
{
    self = [super init];
    if (self) {
        //init 就是构造函数
        self.name = @"xiaoming";
        NSLog(@"我是构造函数");
    }
    return self;
}

- (void)dealloc{
    NSLog(@"我被释放了");
}

@end
